<template>
  <div class="echarts-view">
    <span
      ><h3><span style="color: blue; bold">|</span>人员销售动态</h3></span
    >
    <div class="routeheader">
      <i class="el-icon-search">筛选查询</i>
    </div>
    <div>
      <el-tabs v-model="activeName" type="card" @tab-click="tabChange">
        <el-tab-pane label="本日" name="first">
          <first v-if="activeName === 'first'"></first>
        </el-tab-pane>
        <el-tab-pane label="最近7日" name="second">
          <second v-if="activeName === 'second'"></second>
        </el-tab-pane>
        <el-tab-pane label="最近30天" name="third">
          <third v-if="activeName === 'third'"></third>
        </el-tab-pane>
        <el-tab-pane label="本月" name="fourth">
          <four v-if="activeName === 'fourth'"></four>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
//自定义组件引入
import First from "@/components/action/sales/personnal/First.vue";
import Second from "@/components/action/sales/personnal/Second.vue";
import Third from "@/components/action/sales/personnal/Third.vue";
import Four from "@/components/action/sales/personnal/Four.vue";
export default {
  //
  components: {
    //组件注册
    First, //本日
    Second, //最近7日
    Third, //最近30天
    Four, //本月
  },
  data() {
    return {
      activeName: "first", //标签默认选中first
    };
  },
  created() {},
  methods: {
    //点击标签切换内容
    tabChange(tab) {
      this.activeName = tab.name;
    },
  },
};
</script>

<style>
#baseEcharts {
  width: 800px;
  height: 600px;
}
</style>
